package com.itheima.mapper.client;

import com.itheima.client.userpojo.User;
import com.itheima.client.userpojo.dto.UserDto;
import com.itheima.client.userpojo.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author wuzhiyong
 */
@Mapper
public interface UserMapper {

    /**
     * 登陆
     *
     * @param phone phone
     * @return UserVo
     */
    UserVo selectPhone(String phone);
    /**
     * 登陆-注册
     *
     * @param user user
     * @return 条数
     */
    int insertUser(User user);

    /**
     * 登出
     *
     * @param id id
     * @return UserVo
     */
    UserVo selectById(String id);
}
